<?php
class GuardChangeUserPasswordForm extends sfGuardChangeUserPasswordForm
{

  public function configure ()
  {
    parent::configure();
    
    $this->getWidgetSchema()->setLabel('password', 'Neues Passwort');
    $this->getWidgetSchema()->setLabel('password_again', 'Neues Passwort wiederholen');
    
    $this->adjustErrorMessageRequired('password');
    $this->adjustErrorMessageRequired('password_again');
    
    $this->getValidatorSchema()->getPostValidator()->setMessage('invalid', 'Die beiden Passwörter müssen übereinstimmen.');
  }
}